package com.jm.common.enums;

import lombok.Getter;

/**
 * @Author:JianWu
 * @Date: 2025/1/21  15:25
 */
@Getter
public enum CMPP2ResultEnums {
    OK(0, "正确"),
    MESSAGE_BUILD_ERROR(1, "消息结构错"),
    COMMAND_WORD_ERROR(2, "命令字错"),
    MESSAGE_SEQUENCE_ERROR(3, "消息序号重复"),
    MESSAGE_LENGTH_ERROR(4, "消息长度错"),
    INCORRECT_TARIFF_CODE(5, "资费代码错"),
    EXCEDDING_MAXIMUM_MESSAGE_LENGTH(6, "超过最大信息长度"),
    BUSINESS_CODE_ERROR(7, "业务代码错"),
    FLOW_CONTROL_ERROR(8, "流量控制错"),
    UNKONWN(9, "其他错误"),
    ;
    private Integer result;
    private String msg;

    CMPP2ResultEnums(Integer result, String msg) {
        this.result = result;
        this.msg = msg;
    }
}
